<?php

//$filename = "jdlgjalsdg.jpg";
 //$index=  stripos($filename,".");
//echo substr($filename,0 , $index);
//$dir   = "../images/goods";
//echo str_replace("..","/admin",$dir);
//echo $dir;
//$filepath = "/admin/images/goods/action_game/Car_Mechanic_Simulator_4/Car_Mechanic_Simulator_4.jpg";

//$index = strrpos($filepath,"/");
 //$filepath = substr($filepath,0,$index);
// echo $filepath;
//echo str_replace("/admin","..",$filepath);
//echo $index;
$data ='[{"name":"张三"},{"age":15}]';
print_r(json_decode($data,True));
echo json_encode((json_decode($data,True)));
